<template>
    <a-card :bordered="false">
     <!--   <div class="table-operator">
            <a-button shape="round" size="small" type="primary" icon="plus" @click="handleEdit({},'busForm','新增')">添加</a-button>
        </div> -->

        <LTable
        ref="useListTable"
        size="middle"
        rowKey="keyId"
        :formAttributes="formAttributes"
        :columns="columns"
        axiosUrl="/KhyUseController/page"
        :showPagination="true"
        :showQueryForm="true"
      >

       <!-- <span slot="action" slot-scope="text, record">
         <a @click="handleEdit(record,'busForm',record.plateNo)">详情</a>
         <a-divider type="vertical" />
          <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete({keyId:record.keyId},'/KhyBusController/del','busListTable')">
                <a>删除</a>
            </a-popconfirm>
        </span> -->
        
    </LTable>
    </a-card>
</template>

<script>
import LTable from '@/components/lt/LTable'
import request from '@/utils/request'
import {SysMixin} from '@/mixins/SysMixin'
import defaultSettings from '@/config/defaultSettings'
export default {
    name:'busList',
    components:{LTable},
    mixins:[SysMixin],
    data(){
        return{
            defaultSettings,
            formAttributes:[
                {field:'userNo',label:'手机号',component:'input',condition:'like'},
            ],
         
            columns:[
                {
                    title: '序号',
                    dataIndex: '',
                    key:'rowIndex',
                    width:60,
                    align:"center",
                    customRender:function (t,r,index) {
                      return parseInt(index)+1;
                    }
                },
                 
                {
                    title: '手机号',
                    dataIndex: 'userNo'
                },
                // {
                //     title: '是否可用',
                //     dataIndex: 'isUse',
                //     customRender:(text)=>{
                //        if(!text){
                //             return ''
                //         }else{
                //             return this.dictText(defaultSettings.数据字典.是否,text)
                //         }
                //     }
                // },  
                {
                    title: '创建时间',
                    dataIndex: 'createTime'
                },
            ],
            
        }
    },
    created(){
       
    },
    methods:{
       
    }
}
</script>